package org.robert.export_client.easyexcel.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang.StringUtils;

/**
 * @Description
 * @Author robert
 * @Date 2024/1/14 2:45
 **/
@EqualsAndHashCode(callSuper = true)
@Data
public abstract class WriteRequest<T> extends DataRequest<T>{

    public String path;

    public boolean check(){
        return !(this.clazz == null || path == null || StringUtils.isBlank(sheetName)
                || StringUtils.isBlank(fileName));
    }

}
